#ifndef VIDEOFORM_H
#define VIDEOFORM_H

#include <QMainWindow>
#include <QFileDialog>//文件查找对话框
#include <QtDebug>
//音视频类
#include <QString>
#include <QMediaPlayer> //多媒体播放器
#include <QMediaPlaylist>   //播放队列
#include <QVideoWidget> //视频窗口
#include <QMovie>   //视频播放器
#include <QSlider>
#include <QTimer>
#include <QListWidgetItem>
#include <QWidget>



namespace Ui {
class videoForm;
}

class videoForm : public QWidget
{
    Q_OBJECT

public:
    explicit videoForm(QWidget *parent = nullptr);
    ~videoForm();
    QString settime(int time);

private:
    Ui::videoForm *ui;
    QMediaPlayer* qPlayer;
    QMediaPlaylist* qPlayerList;
    QVideoWidget* qVideoWidget;
    QStringList fileNames;
    int playtime;

private slots:
    void on_openbutton_clicked();
    void on_playbutton_clicked();
    void on_stopbutton_clicked();
    void on_lastbutton_clicked();
    void on_suspendbutton_clicked();
    void on_nextbutton_clicked();
    void onTimerOut();
    void on_bar_sliderMoved(int position);
    void on_bar_sliderPressed();
    void on_bar_sliderReleased();
    void on_volume_sliderMoved(int position);
    void on_listWidget_itemDoubleClicked(QListWidgetItem *item);
    void getduration();

};

#endif // VIDEOFORM_H
